package com.antdesignbackend.backend.situationReport.service.impl;


import com.antdesignbackend.backend.entity.entityVo.EggVo;
import com.antdesignbackend.backend.mapper.EggMapper;
import com.antdesignbackend.backend.situationReport.entity.entityVo.SituationReportVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.situationReport.mapper.SituationReportMapper;
import com.antdesignbackend.backend.situationReport.entity.SituationReport;
import com.antdesignbackend.backend.situationReport.service.SituationReportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class SituationReportServiceImpl extends ServiceImpl<SituationReportMapper, SituationReport> implements SituationReportService {
    @Autowired
    SituationReportMapper situationReportMapper;

    @Override
    public List<SituationReportVo> search(@Param(Constants.WRAPPER) QueryWrapper<SituationReportVo> situationReportVoQueryWrapper, Page<SituationReportVo> page){
        return situationReportMapper.search(situationReportVoQueryWrapper,page);
    };
    @Override
    public Integer count(@Param(Constants.WRAPPER) QueryWrapper<SituationReportVo> queryWrapper){
        return  situationReportMapper.count(queryWrapper);
    };

}
